#include <iostream>
#include <ctime>

using namespace std;

char message[1000];

int main(int argc, char* argv[])
{
	srand(time(0));
	int maxit = 10;
	if (argc == 2) {
		maxit = atoi(argv[1]);
	}
	for (int it = 0; it < maxit; ++it) {
		for (int i=0; i<1000; ++i)
			message[i] = 'a' + rand()%26;
		int idx = 0;
		int cnt = 0;
		while (idx < 1000) {
			if (rand()%3==0) {
				char ch;
				while (true) {
					ch = rand()%255;
					if ((ch < 'a' || ch > 'z') && (ch != '\r' && ch != '\n'
						&& 32<=ch)) {
							cout << ch;
							break;
					}
				}
			}
			else {
				cout << message[idx];
				++idx;
			}
			++cnt;
			if (cnt > 58) {
				cout << '-' << endl;
				cnt = 0;
			}

		}
		cout << endl;
	}
	cout << "#" << endl;
	return 0;
}